package com.test.ch01;

public class Student {
    private int age;
    private String name;
    private static int count;

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    /*@Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }*/

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Student() {
    }

    public static int getCount() {

        return count;
    }
    public static void getCount(int n){
        n++;
    }

    public static void setCount(int count) {
        Student.count = count;
    }
}
